package cn.hdu.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangxin
 * @since 2022-04-08
 */
@Getter
@Setter
@TableName("article")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "article_id", type = IdType.AUTO)
    private Integer articleId;

    @TableField("article_title")
    private String articleTitle;

    @TableField("article_author_id")
    private Integer articleAuthorId;

    @TableField("article_author")
    private String articleAuthor;

    @TableField("article_details")
    private String articleDetails;

    @TableField("article_category")
    private String articleCategory;

    @TableField("article_state")
    private String articleState;

    @TableField("article_allow_comment")
    private String articleAllowComment;

    @TableField("article_page_view")
    private Integer articlePageView;

    @TableField("article_comments_num")
    private Integer articleCommentsNum;

    @TableField("article_release_time")
    private LocalDateTime articleReleaseTime;

    @TableField("article_modify_time")
    private LocalDateTime articleModifyTime;


}
